package com.totalinlink.blogic;

import android.app.Application;
import android.content.Context;
import android.widget.Toast;

import com.totalinlink.util.HttpUtil;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by zhangpf1127 on 2015/9/6.
 */
public class LoginBLogic{

    private static final String url = "192.168.0.1:8080";

    public String LoginBLogic(String name, String pwd) {

        if (name.equals("123") && pwd.equals("123")) {
            return "success";
        } else {
            return "fail";
        }

//        JSONObject params = new JSONObject();
//        try {
//            params.put("userName", name);
//            params.put("password", pwd);
//        } catch (JSONException e) {
//            e.printStackTrace();
//        }
//
//        HttpUtil.postJsonObjectRequest(url, params);

    }
}
